Using ReferenceSearch outputsLucenePropertyIndex This index is deprecated in the log | Community
Skip to main content
Level 2
January 6, 2021
Solved

Using ReferenceSearch outputsLucenePropertyIndex This index is deprecated in the log

  • January 6, 2021
  • 1 reply
  • 943 views

Relatively straightforward usage of ReferenceSearch causes my AEM log to be populated by the following warnings

 

org.apache.jackrabbit.oak.plugins.index.lucene.LucenePropertyIndex This index is deprecated: /oak:index/lucene; it is used for query Filter(query=select [jcr:path], [jcr:score], * from [nt:base] as a where contains.... Please change the query or the index definitions.

 

Code snippet:

ReferenceSearch referenceSearch = new ReferenceSearch(); referenceSearch.setExact(true); referenceSearch.setHollow(true); Map<String, ReferenceSearch.Info> resultMap = referenceSearch.search(resourceResolver,path); return !resultMap.isEmpty();

 

Is this behaviour expected? What can I do to remove the warning? Would you recommend I build my own query to look for references? My objective is to find pages that are orphaned (have no references) which I'm doing by search for all cq:Page nodes in repository and then iterating through them and triggering the search using the snippet above.

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Peter_Puzanovs

Hi Tomas,

 

Adobe Folks are aware of this warning, this has been reported to them before. As per latest this warn is being tracked in their own Jira.

 

There is nothing we can do about it right now, except ignoring it and marking it as known in your wiki.

 

Regards,

Peter

1 reply

Peter_Puzanovs
Community Advisor
Peter_PuzanovsCommunity AdvisorAccepted solution
Community Advisor
January 10, 2021

Hi Tomas,

 

Adobe Folks are aware of this warning, this has been reported to them before. As per latest this warn is being tracked in their own Jira.

 

There is nothing we can do about it right now, except ignoring it and marking it as known in your wiki.

 

Regards,

Peter